package com.yootk.vo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Set;

@Component  // 扫描注册Bean
public class Message2 {

    @Value("#{ 'muyan-yootk-10001'.split('-')[2] }")
    private long mid;

    @Value("#{ 'muyan123_yootk0909'.replaceAll('\\d+', '') }")
    private String title;

    @Value("#{ 'www.YOOTK.com'.toLowerCase() }")
    private String content;

    @Value("#{ 'java;python;golang'.split(';') }")
    private Set<String> tags;

    public long getMid() {
        return mid;
    }

    public void setMid(long mid) {
        this.mid = mid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Set<String> getTags() {
        return tags;
    }

    public void setTags(Set<String> tags) {
        this.tags = tags;
    }
}
